package com.zhixing.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhixing.user.domain.entity.User;
import com.zhixing.user.domain.vo.UserInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select nickname, avatar, role from t_user where id = #{id}")
    UserInfoVO getUserInfo(int id);
}
